package com.gel.shortLink.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gel.shortLink.dao.entity.LinkNetworkStatsDO;
import com.gel.shortLink.dto.req.ShortLinkGroupStatsReqDTO;
import com.gel.shortLink.dto.req.ShortLinkStatsReqDTO;

import java.util.List;

public interface LinkNetworkStatsMapper extends BaseMapper<LinkNetworkStatsDO> {

    void shortLinkNetworkState(LinkNetworkStatsDO linkNetworkStatsDO);

    /*根据短链接获取指定时间内的网络类型*/
    List<LinkNetworkStatsDO> listNetworkStatsByShortLink(ShortLinkStatsReqDTO requestParam);
    /*根据分组获取指定时间内的网络类型*/
    List<LinkNetworkStatsDO> listNetworkStatsByGroup(ShortLinkGroupStatsReqDTO requestParam);
}
